<template>
  <div class="common-layout">
    <el-container class="lay-container">
      <!-- 左侧标签栏 -->
      <CommonAside />
      <el-container>
        <el-header>
          <!-- 头部标签栏 -->
          <common-header />
          <!-- tab标签栏 -->
        </el-header>
        <common-tab />
        <el-main class="right-mian">
          <!-- 内容部分 -->
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>


<script>
import { defineComponent } from 'vue';
import CommonHeader from '../components/CommonHeader.vue';
import CommonAside from '../components/CommonAside.vue';
import CommonTab from '../components/CommonTab.vue';
export default defineComponent(
  {
    components: {
      CommonHeader,
      CommonAside,
      CommonTab
    }
  }
)
</script>

<style lang="less" scoped>
.el-container {
  flex-wrap: wrap;
  //align-items: flex-start;
  height: 100%;
}
.common-layout {
  height: 100%;
  .lay-container {
    flex-wrap: nowrap;
    .right-mian {
      height: calc(100% -124px) !important;
    }
  }
  .el-container {
    height: 100%;
    .el-aside {
      height: 100vh;
      background: #545c64;
    }
  }
  .el-header {
    padding: 0;
  }
}
</style>